<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<title><?=$this->title?></title>
<script type="text/javascript" src="./public/js/jquery.js"></script>
<script>
$(document).ready(function(){
	$(".title").css({"color":"red", "font-weight":"bold"});
});
</script>
</head>
<body>
<table border="1">
	<tr><?=$this->bodyTitle?><span style="margin-left:20px;"><a href="<?=$this->baseUrl;?>/index/add">新增</a></span></tr>
	<tr class="title">
		<td>标题</td>
		<td>时间</td>
		<td>操作</td>
		<td>操作</td>
	</tr>
	<?php foreach($this->posts as $v){ ?>
	<tr>
		<td><?=$v['name']?></td>
		<td><?=$v['add_date']?></td>
		<td><a href="<?=$this->baseUrl;?>/index/edit?id=<?=$v['id']?>" target="_blank">编辑</a></td>
		<td><a href="<?=$this->baseUrl;?>/index/del?id=<?=$v['id']?>" target="_blank">删除</a></td>
	</tr>
	<?php } ?>
</table>
</body>
</html>
